need help writing same page links

Category: Geeks r Us

Post 1 by kithri (Help me, I'm stuck to my chair!) on Tuesday, 20-Oct-2009 19:09:04

How exactly do I write a same page link so that when people click on it; it will bring them to the section of the same page that the link deals with. Like on a home page sometimes you see same page link... and you click on it and it brings you farther down the page to that specific section so you don't have to navigate the entire page.
How do I write the same page link and how do I tell the site where to go and when to stop at the part that page link is meant for?

If anyone knows how to do this; can you please spell it out instead of using the code cause then when you save your reply, the example will be in code. Like:

lessa href=quotesamepagelinkquote...


I need to see what I need to do to write it in the code.
Thanks for any help.
Chastity

Post 2 by Harmony (I've now got the silver prolific poster award! wahoo!) on Sunday, 25-Oct-2009 18:05:13

I tried looking on the w3 schools website, but their explanation isn't very clear.

Post 3 by Stevo (The Established Ass) on Sunday, 25-Oct-2009 18:54:28

I'll see if I can write out the HTML for this, but basicly you have to create a bookmark in the place you want to link to and then create the link to that bookmark.

A bookmark is done something like:


Then to link to it you write:
link text

Hope that makes sense.

Post 4 by Stevo (The Established Ass) on Sunday, 25-Oct-2009 18:55:39

Okay it worked when I previewed it but not now. Well I hope it still made sense. Probably not. lol

Post 5 by Stevo (The Established Ass) on Sunday, 25-Oct-2009 18:57:40

I'll try it in words like in post one... didn't think of that, maybe I'm just a bit slow.

A bookmark looks like this:
less a name="bm" greater less /a greater

Then the link would look like:
less a href="#bm" greater link text less /a greater

Post 6 by kithri (Help me, I'm stuck to my chair!) on Monday, 26-Oct-2009 14:55:31

Thanks, that helps when it's spelled as doing the code on here and when the reply is posted, it actualy turns into the code. Thanks to all.

Post 7 by ™ (Veteran Zoner) on Tuesday, 27-Oct-2009 5:07:47

it's now better to have it is id="name" instead of name="name" good habbit to get into as is closing all tags.

Post 8 by ™ (Veteran Zoner) on Tuesday, 27-Oct-2009 5:19:22

So, it'll look like this.



and the link will look like this.

Skip to contents

Which will look like this.

Skip to contents